package com.ass.zookeeper.constant;

import lombok.AllArgsConstructor;
import org.apache.zookeeper.CreateMode;

@AllArgsConstructor
public enum ServerNodeType {

    // /server_parent_path_per

    PERSISTENT("持久节点","_per",CreateMode.PERSISTENT),

    PERSISTENT_SEQUENTIAL("持久序号节点","_per_serial_",CreateMode.PERSISTENT_SEQUENTIAL),

    EPHEMERAL("临时节点","_eph",CreateMode.EPHEMERAL),

    EPHEMERAL_SEQUENTIAL("临时序号节点","_eph_serial_",CreateMode.EPHEMERAL_SEQUENTIAL)

    ;

    public final  String name;

    public final  String prefix;

    public final  CreateMode createMode;




}
